A = {"python", 123, ("python", 123)}  # 使用{}建立集合
B = set("pypy123")  # 使用set()建立集合
C = {"python", 123, "python", 123}
print(A, B, C)
# {('python', 123), 123, 'python'}
# {'2', 'y', '1', 'p', '3'}
# {123, 'python'}

D = {"p", "y", 123}
E = set("pypy123")
print(D - E, D & E, D ^ E, D - E, D | E)
print(D <= E, D < E)
F = {1, 2, 3}
G = {1, 3, 5}
F |= G
print(F)
F = {1, 2, 3}
G = {1, 3, 5}
F -= G
print(F)
F = {1, 2, 3}
G = {1, 3, 5}
F &= G
print(F)
F = {1, 2, 3}
G = {1, 3, 5}
F ^= G
print(F)
